package com.bdk.middle.management.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author Reagan
 * @since 2021-01-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role")
public class RoleEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("code")
    private String code;

    /**
     * 角色名
     */
    @TableField("name")
    private String name;

    @TableField("create_date")
    private Date createDate;

    @TableField("modifi_date")
    private Date modifiDate;

    @TableField("creator")
    private String creator;

    @TableField("modifier")
    private String modifier;

    /**
     * 0.停用. 1启用\n            \n            
     */
    @TableField("status")
    private Integer status;

    /**
     * -1 删除 1 有效\n            
     */
    @TableField("is_delete")
    private Integer isDelete;


}
